how to use variables to read in nested json